<?php
include_once '../classes/ValidateLogin.php';


/**
 * Description of ControlerCadastro
 *
 * @author GIOVANI
 */
//instancias
    $validateLogin = new ValidateLogin();


    $values = array('email'=>$_POST['email'],
                    'senha'=>$_POST['senha']);

    

    if($validateLogin->validarLogin($values)){
        //header('Location:../view/profile.php');
    }
    else{
        //header('Location:../view/loginError.php');
    }

?>
